package com.ricky.mapper;

import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface BaseMapper<T, E> {


    int countByExample(E example);



    int deleteByExample(E example);


    int deleteByPrimaryKey(String id);


    @Deprecated
    int insert(T record);


    int insertSelective(T record);


    List<T> selectByExample(E example);


    T selectByPrimaryKey(String id);

    T selectBySuborderId(String suborderId);


    int updateByExampleSelective(@Param("record") T record, @Param("example") E example);


    int updateByExample(@Param("record") T record, @Param("example") E example);


    int updateByPrimaryKeySelective(T record);


    int updateByPrimaryKey(T record);
}
